cmake_minimum_required(VERSION 3.22.1)

project(tinycap_aml)

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

include_directories(../../tinyalsa_aml/include)

add_executable(tinycap_aml  ../../tinyalsa_aml/mixer.c
        ../../tinyalsa_aml/mixer_hw.c
        ../../tinyalsa_aml/mixer_plugin.c
        ../../tinyalsa_aml/pcm.c
        ../../tinyalsa_aml/pcm_hw.c
        ../../tinyalsa_aml/pcm_plugin.c
        ../../tinyalsa_aml/snd_utils.c ./tinycap.c)